import instance from '../../utils/request';

export function findPage(searchParams) {
    //向后台发送请求，得到数据
    return instance.get(`/stockOut/briefList`,{params: searchParams});
}

export function findAllType() {
    //向后台发送请求，得到数据
    return instance.get(`/stockOut/dic`);
}

export function findDetailedInfoById(id) {
    //向后台发送请求，得到数据
    return instance.get(`/stockOut/detailedInfoById/${id}`);
}

export function findDetailedById(id) {
    //向后台发送请求，得到数据
    return instance.get(`/stockOut/detailedById/${id}`);
}


export function findDetailedOrderImelById(id) {
    //向后台发送请求，得到数据
    return instance.get(`/stockOut/detailedOrderImelList/${id}`);
}


export function insertImel(ids) {
    //向后台发送请求，得到数据
    return instance.post(`/stockOut/insertImel/${ids}`);
}

export function holdImel(ids) {
    //向后台发送请求，得到数据
    return instance.post(`/stockOut/holdImel/${ids}`);
}

export function createBatchExcel(ids) {
    //向后台发送请求，得到数据
    return instance.post(`/putStorage/createBatchExcel`,ids);
}

